package com.ruoyi.backend.mapper;

import com.ruoyi.backend.pojo.SurveyData;
import com.ruoyi.backend.pojo.SurveyListData;
import com.ruoyi.backend.vo.FieldSurveyDataVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface SurveyMapper {

    void upload(@Param("surveydate") SurveyListData surveydate,
                @Param("investigateId") Integer investigateId);

    List<FieldSurveyDataVO> search(@Param("investigateId") Integer investigateId,
                                   @Param("startTime") LocalDateTime startTime,
                                   @Param("endTime") LocalDateTime endTime,
                                   @Param("longitude") Double longitude,
                                   @Param("latitude") Double latitude,
                                   @Param("height") Double height);

    void delete(Integer id);

    void update(SurveyData survey);

    Integer getCountId(Integer surveyId);


}
